/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package personas;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author josedavo
 */
public class Usuario {
 String username;
 String pass;

    public Usuario(String username, String pass) {
        this.username = username;
        this.pass = pass;
    }

 public  Usuario() {  }
 
  public static Usuario load(ResultSet rs) throws SQLException{
        Usuario usuario=new Usuario();

      usuario.setUsername(rs.getString(1));
      usuario.setPass(rs.getString(2));


        return usuario;
    }


    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

}
